<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../vue.js"></script>
</head>
<body>
    <div id="app">
        <P study="原始属性">111111</P>
        <!-- v-bind修改属性为数据里的属性 -->
        <P V-bind:study="count">111111</P>
        <!-- v-bind可以简写为冒号 -->
        <p :study="isHot? 're':'len'  "></p>
        <p :study="msg"></p>
        <img :src="src" alt="">
        
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el:'#app',
            data(){
                return{
                    count:3,
                    msg:'这是属性2',
                    study:'这是属性三',
                    src:"这是属性4",
                    isHot:true,
                }
            }
        })
    </script>
</body>
</html>